package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.ArticleListModel

/**
 * @auth: njb
 * @date: 2021/12/23 9:48
 * @desc: 描述
 */
class WxArticleSearchListRepository :BaseRepository(){
    private val mWxArticleSearchListRepository by lazy {
        RetrofitClient.service
    }

    suspend fun wxArticleSearchList(page:Int,id:String,keyword:String):ApiResponse<ArticleListModel>{
        return executeHttp {
            mWxArticleSearchListRepository.wxArticleSearchList(page, id, keyword)
        }
    }
}